import Vue from 'vue'
import Router from 'vue-router'

// 首页
import Home from '@/components/home/Home'
// 显盒
import DisplayBox from '@/components/displayBox/DisplayBox'
// 社区
import Community from '@/components/community/Community'
// 我的
import My from '@/components/my/My'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: '首页',
      component: Home
    },
    {
      path: '/Home',
      name: '首页',
      component: Home
    },
    {
      path: '/DisplayBox',
      name: '显盒',
      component: DisplayBox
    },
    {
      path: '/Community',
      name: '社区',
      component: Community
    },
    {
      path: '/My',
      name: '我的',
      component: My
    }
  ]
})
